﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPF_DtaGrid_MVVM模式
{
    public class Student:ViewModelBase
    {
        private int _id;
        private string _name;  

        public int Id
        {
            get { return _id; }
            set 
            {
                _id = value;
                RaisePropertyChanged();
            }
        }

        public string Name
        {
            get { return _name; }
            set 
            {
                _name = value;
                RaisePropertyChanged();
            }
        }

    }
}
